/**
 * 
 */
package ltu.m7011e.server.response.link;

import java.util.Date;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

import ltu.m7011e.server.response.author.AuthorResponse;

/**
 * @author robinelmouahidine
 *
 */
public class LinkResponse {
	
	@XmlAttribute(name="id")
	public Integer id;

	@XmlAttribute(name="theLink")
	public String theLink;

	@XmlAttribute(name="description")
	public String description;
	
	@XmlAttribute(name="category")
	public String category;
	
	@XmlAttribute(name="date")
	public String date;
	
	@XmlAttribute(name="likes")
	public Integer likes;

	@XmlElement(name="author")
	public AuthorResponse author;
	
	/**
	 * Default Constructor
	 */
	public LinkResponse(){}

	/**
	 * @param id
	 * @param theLink
	 * @param description
	 * @param category
	 * @param date
	 * @param likes
	 * @param city
	 */
	public LinkResponse(Integer id, String theLink, String description,
			String category, String date, Integer likes, AuthorResponse author) {
		this.id = id;
		this.theLink = theLink;
		this.description = description;
		this.category = category;
		this.date = date;
		this.likes = likes;
		this.author = author;
	}


}
